<?php


class m_tree extends M {



	function __init__ () {
	
		$this->db->settable("www_tree")->init();
		$this->treelist = $this->db->select();
	
	}

	function news_tree() {
		//新闻分类
		$news_list = list_to_tree($this->treelist,"id","pid","_child",60,0);
		$this->view->assign("news_tree",$news_list);
	}










}